package com.miyu.test.hutool.JSON;

import com.alibaba.fastjson.JSONObject;
import lombok.extern.slf4j.Slf4j;

import javax.sql.rowset.serial.SerialClob;
import java.sql.Clob;
import java.sql.SQLException;

@Slf4j
public class JSON {
/*    public static void main(String[] args) {
        JSONObject jo = new JSONObject();
        jo.put("aa","bb");
        log.info(">>"+jo.size());
    }*/

    public static void main(String[] args) throws SQLException {
        String str ="svdsw32121";
        Clob clob = new SerialClob(str.toCharArray());
        log.info(">>"+clob.getSubString(1,Integer.valueOf(clob.length()+"")));

        log.info(clob.length()+"");
        System.out.println(clob);
    }
}
